package com.bci.pwtz.service;

import java.util.List;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.UserCompanyRef;

public interface UserCompanyRefService
{
List<UserCompanyRef> findUserCompanyRefList(Long userId)throws PwtzDatabaseException;
public int selectJoinCompanyNumByUserId(long companyUserId)throws PwtzDatabaseException;
/**
 * 一句话描述 <br/>
 * <p>Description: TODO(详细描述) 
 * <br/>
 * <p>Author: tonic<br/>
 * <p>Date: 2015-1-16-上午10:13:41<br/>
 * <p>
 * @param companyId
 * @return
 * @throws PwtzDatabaseException   
 * 
 */
int selectCompanyUsers(long companyId) throws PwtzDatabaseException;

List<UserCompanyRef> userStatics(String begintime,String endtime,String companyName)throws PwtzDatabaseException;

PaginationList<UserCompanyRef> selectCompanyUserList(Long companyId,int pageSize,int pageNo)throws PwtzDatabaseException;
/**
 * 一句话描述 <br/>
 * <p>Description: TODO(详细描述) 
 * <br/>
 * <p>Author: tonic<br/>
 * <p>Date: 2015-2-12-下午3:30:18<br/>
 * <p>
 * @param userId
 * @param companyId
 * @return
 * @throws PwtzDatabaseException   
 * 
 */
int selectInCompany(long userId, long companyId) throws PwtzDatabaseException;
}
